package com.zhb.designmode.creationmode.factory.factorymethod;

public class Client {
    public static void main(String[] args) {
        //大众
        AbstractFactory factory = new DaZhongFactory();
        Car daZhong = factory.getCar();
        daZhong.getName();
        //特斯拉
        AbstractFactory factory2 = new TeslaFactory();
        Car tesla = factory2.getCar();
        tesla.getName();
    }
}
